/**
 * 
 */
package com.redside.service;

import java.util.List;

import com.redside.model.Business;
import com.redside.view.BusinessAssociatorView;

/**
 * @author pchapman
 *
 */

public interface BusinessManager extends GenericManager<Business, Long> {

    /**
     * Returns a list of Businesses based on partial 
     * search criteria
     * @param business
     * @return populated business object
     */
    public List<Business> findByAssociation(BusinessAssociatorView business);    
    
    /**
     * 
     * @return a List of Business objects by county Id, sorted
     */
    public List<Business> findByCountyIdSorted(String countyId, String[] sortOrder);
    
    /**
     * 
     * @return a List of Business objects based on
     * countyId.
     * @param id the county id.
     */
    public List<Business> findByCountyId(String id);   

}
